package com.company.geometric.background;

/**
 * Created by v on 16-11-30.
 */
public class Polygone extends Geometry{
    public Polygone(String message){
        super(message);
    }

    public Polygone(String message, int sides, int[] x, int [] y){
        super(message);
        points=new Point[sides];
        for(int i=0;i<sides;i++){
            points[i]=new Point(x[i],y[i]);
        }
    }

    protected Point[] points;

    public Point[] getPoints(){
        return points;
    }
}
